package com.yzh.booksystem.service;

import com.yzh.booksystem.dao.UpdateDao;
import com.yzh.booksystem.entity.Book;

import java.sql.SQLException;

public class UpdateService {
    UpdateDao updateDao = new UpdateDao();
    public boolean isUpdate(Book book) throws SQLException {
        if (updateDao.updateBook(book)) {
            return true;
        } else {
            return false;
        }
    }
}
